package com.cos.edoc.web.controller;

import com.cos.edoc.entity.EdocCategory;
import com.cos.edoc.services.EdocCategoryServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/3/14 15:12
 * @description:
 */
@Controller
@RequestMapping("/category")
public class EdocCategoryController  {
    @Autowired
    private EdocCategoryServices categoryServices;

    @RequestMapping("/getAll")
    @ResponseBody
    public List<EdocCategory> getAll(){
        return categoryServices.getAll();
    }

}
